
class Anamial{
    String name;
    int age;
    public void eat(){
        System.out.println(this.name+"正在吃饭");
    }
    public void sleep(){
        System.out.println(this.name+"正在吃饭");
    }
}

class Cat extends Anamial{

}


public class TextDemo {
    public static void main(String[] args) {

        Cat cat = new Cat();
        cat.name = "咪咪";
        cat.eat();
    }
}
